package com.cskaoyan.bean.wx.home.vo;

import com.cskaoyan.bean.MarketGoods;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 创建日期: 2022/05/08 14:26
 *
 * @author JinLu Zhou
 */
@Data
public class HotGoodsVo {
    String brief;
    BigDecimal counterPrice;
    Integer id;
    Boolean isHot;
    Boolean isNew;
    String name;
    String picUrl;
    BigDecimal retailPrice;

    public void set(MarketGoods marketGoods) {
        setBrief(marketGoods.getBrief());
        setCounterPrice(new BigDecimal(marketGoods.getCounterPrice()));
        setId(marketGoods.getId());
        setIsHot(marketGoods.getIsHot());
        setIsNew(marketGoods.getIsNew());
        setName(marketGoods.getName());
        setPicUrl(marketGoods.getPicUrl());
        setRetailPrice(new BigDecimal(marketGoods.getRetailPrice()));
    }
}
